package com.defect.service.securityService;

import com.defect.po.User;

import java.util.List;
import java.util.Map;

public interface LUserService {
    /**
     * 查询所有用户
     *
     * @return
     * @throws Exception
     */
    public List<Map<String, Object>> selectUserAll(Map<String, Object> map) throws Exception;

    /**
     * 查询用户的数量
     * @param map
     * @return
     * @throws Exception
     */
    public long cont(Map<String, Object> map) throws Exception;

    /**
     * 新增用户
     *
     * @return
     * @throws Exception
     */
    public User insertUser(User user) throws Exception;

    /**
     * 修改用户
     *
     * @return
     * @throws Exception
     */
    public int updataUser(User user) throws Exception;

    /**
     * 批量删除用户
     *
     * @return
     * @throws Exception
     */
    public void delateUsers(Integer[] arr) throws Exception;

    /**
     * 删除用户
     *
     * @return
     * @throws Exception
     */
    public void delateUser(Integer id) throws Exception;
}
